package com.zebra.remoting;

import com.zebra.remoting.config.ConstantValue;
import io.netty.channel.ChannelHandler;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;


public abstract class AbstractRpcCodec implements RpcCodec {

    @Override
    public ChannelHandler newLengthDecoder() {
        return new LengthFieldBasedFrameDecoder(ConstantValue.MESSAGE_MAX_FRAME_LENGTH, 2, 2, 0, 0);
    }

}
